package com.derbysoft.lowcostadapter.commons.repository.impl;

import com.derbysoft.lowcostadapter.commons.model.ProviderIdentification;
import com.derbysoft.lowcostadapter.commons.repository.ProviderIdentificationRepository;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Repository;

/**
 * User: jason
 * Date: 2012-11-15
 */
@Repository("providerIdentificationRepository")
public class ProviderIdentificationRepositoryImpl
        extends CommonService<ProviderIdentification> implements ProviderIdentificationRepository {
    @Override
    public ProviderIdentification loadByChannel(String channelCode) {
        return load("channelCode", StringUtils.upperCase(channelCode));
    }
}
